package ch6;

public class Array1 {

	public static void main(String[] args) {
		// 数组
		int[] ar;
		// int ar2[];
		ar = new int[20];
		ar[0] = 14;
		ar[1] = 15;
		ar[2] = 29;
		ar[2] = ar[2] * 5;
		int k = ar[1];// 15
		// 定义和赋值一步搞定
		int a2[] = { 1, 4, 9, 11, 16, 29 };
		int[] a3 = new int[] { 1, 3, 6, 66, 13, 356, 34, 5 };
		// int[] a4;
		// a4={1,2,3,4,5};//有错误

	}

}
